<form method="POST">
 <table cellpadding="0" cellspacing="0">
  {foreach from=$formArray item=fArr}

   <tr>
    <td>{$fArr.label}</td>
    <td>
     {if     $fArr.field     == "text"}
      <input type="text" name="{$fArr.name}" id="{$fArr.name}" value="{if $fArr.value}{$fArr.value}{elseif $formRow[$fArr.column]}{$formRow[$fArr.column]}{/if}" />
     {elseif $fArr.field == "password"}
      <input type="password" name="{$fArr.name}" id="{$fArr.name}" />
     {/if}
    </td>
   </tr>

  {/foreach}
 </table>
 <input type="hidden" name="{$formName}_submit" value="true" />
 <input type="submit" />
</form>